package com.egg.auth.model.response.web;

import com.egg.common.core.model.response.BaseResponse;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author east
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "菜单树")
public class MenuTree extends BaseResponse {


    @ApiModelProperty(value = "ID")
    private Long id;

    @ApiModelProperty(value = "父级菜单ID")
    private Long pid;

    @ApiModelProperty(value = "菜单名称")
    private String name;

    @ApiModelProperty(value = "菜单类型")
    private String type;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "路由地址")
    private String path;

    @ApiModelProperty(value = "组件路径")
    private String component;

    @ApiModelProperty(value = "是否隐藏")
    private Boolean hidden;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "重定向")
    private String redirect;

    @ApiModelProperty(value = "权限标识")
    private String perm;

    @ApiModelProperty(value = "子菜单")
    private List<MenuTree> children;


}
